package com.guaika.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guaika.reggie.common.ResultMessage;
import com.guaika.reggie.entity.Orders;

import java.util.Date;

/**
 * @author GuaiKa
 */
public interface OrdersService extends IService<Orders> {
    /***
     * 保存用户下单数据并清空购物车
     * @param orders
     */
    void submit(Orders orders);

    /**
     * 分页查询
     * @param page
     * @param pageSize
     * @param orderNumber
     * @param beginTime
     * @param endTime
     * @return
     */
    ResultMessage<Page> ordersPage(int page, int pageSize, String orderNumber, Date beginTime, Date endTime);
}
